import request from '@/utils/request'
export const companyDepartmentRequest = () => request.get('/company/department')
export const sysUsersimpleRequest = () => request.get('/sys/user/simple')
// 新增部门
export const companyRequest = ({ code, introduce, managerId, name, pid }) => request.post('/company/department', { code, introduce, managerId, name, pid })
// 删除部门
export const deleteDepartmentRequest = (id) => request.delete(`/company/department/${id}`)
// 编辑
export const revampCompanyRequest = ({ code, introduce, managerId, name, pid, id, createTime }) => request.put(`/company/department/${id}`, { code, introduce, managerId, name, pid, createTime })
// 获取详情
export const getDepartmentRequest = (id) => request.get(`/company/department/${id}`)
